package com.itheima.tlias84.service;

import com.itheima.tlias84.dto.SelectAllEmpDTO;
import com.itheima.tlias84.dto.SelectEmpDatailDTO;
import com.itheima.tlias84.po.InsertEmpParam;
import com.itheima.tlias84.po.SelectEmpPageParam;
import com.itheima.tlias84.po.UpdateEmpParam;
import com.itheima.tlias84.utils.ResultUtil;

import java.util.List;

public interface EmpService {
    //分页查询
//    ResultUtil selectEmpByPage(SelectEmpPageParam page);
    ResultUtil selectEmpByPage(SelectEmpPageParam param);
    int deleteEmpByIds(List<Integer> ids );

    int insertEmp( InsertEmpParam param);

    SelectEmpDatailDTO selectEmpById(  Integer id);
    int updateEmp(  UpdateEmpParam updateEmpParam);
    List<SelectAllEmpDTO> selectAllEmp();

    ResultUtil countEmpByJob();
}
